// (c) 2008 Kickstone Technology Ltd

#include "stdafx.h"
#include "DlgAbout.h"

void CDlgAbout::openDialog(HWND hWnd){
	DialogBox(_AtlBaseModule.m_hInst, MAKEINTRESOURCE(IDD_ABOUT), hWnd, &dlgProc);
}

BOOL CALLBACK CDlgAbout::dlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) {
    switch(Message) {
        case WM_INITDIALOG:
	        return TRUE;
        case WM_COMMAND:
            switch(LOWORD(wParam)) {
                case IDOK:
                    EndDialog(hwnd, IDOK);
                break;
                case IDCANCEL:
                    EndDialog(hwnd, IDCANCEL);
                break;
            }
	        break;
        default:
            return FALSE;
    }
    return TRUE;
}